package com.lizhi.yun.db.msb.entity;/**
 * @program: msb
 * @name MsbPatientEntity
 * @description: 患者信息
 * @author: lizhi
 * @create: 2021-12-08 11:04
 */

import com.lizhi.mybatis.boot.Description;
import lombok.Data;
import lombok.ToString;

import javax.persistence.*;

/**
 *@program: msb
 *@name MsbPatientEntity
 *@description: 患者信息
 *@author: lizhi
 *@create: 2021-12-08 11:04
 */
@Data
@ToString
@Table(name = "msb_patient")
@Entity
@Description("患者信息表")
public class MsbPatientEntity extends AbstractEntity {

    @Id
    @Column(columnDefinition="varchar(30) COMMENT 'id'")
    public String lid;

    @Column(columnDefinition="varchar(30) COMMENT '患者id'")
    public String ptId;

    @Column(columnDefinition="varchar(500) COMMENT '患者姓名'")
    public String ptNm;

    /**
     * 输入类型
     * @see com.lizhi.common.yun.enums.UppSexEnum
     */
    @Column(columnDefinition="varchar(500) COMMENT '患者性别'")
    public String ptSex;

    @Transient
    public String ptSexText;

    @Column(columnDefinition="varchar(500) COMMENT '患者身份证号'")
    public String ptIdCard;

    @Column(columnDefinition="varchar(500) COMMENT '患者出生日期'")
    public String ptBirthday;

    @Column(columnDefinition="varchar(500) COMMENT '患者年龄'")
    public String ptAge;

    @Column(columnDefinition="varchar(50) COMMENT '患者手机号'")
    public String ptPhone;

    @Column(columnDefinition="varchar(500) COMMENT '患者地址'")
    public String ptAddress;

    @Column(columnDefinition="int(11) COMMENT '患者阈值'")
    public int ptThreshold;

    @Column(columnDefinition="varchar(500) COMMENT '主治医师'")
    public String ptDoctor;
}
